import request from '@/utils/request';

const api_name = `/api/hosp/hospital`
export default {

  // 查询医院列表
  getPageList(page,limit,searchObj) {
    return request({
      url: `${api_name}/findHospList/${page}/${limit}`,
      method: 'GET',
      parms: searchObj
    })
  },

  //根据医院名称模糊查询
  getByHosname(hosname) {
    return request({
      url: `${api_name}/findByHosName/${hosname}`,
      method: 'GET'
    })
  },
  
  
  //根据医院编号获取科室信息
  show(hoscode) {
    return request({ 
      url: `${api_name}/findHospDetail/${hoscode}`,
      method: 'GET'
    })
  },
  
  //医院预约挂号详情
  findHospDetail(hoscode) {
    return request({
      url: `${api_name}/department/${hoscode}`,
      method: 'GET'
    })
  },

}
